import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'dva'
import { Row,Col,Card,Tabs } from 'antd'
import { routerRedux } from 'dva/router'
import List from './List'

const ArchivalReminders = ({location,dispatch,archivalReminders,loading}) => {
	const { list,pagination1 } = archivalReminders
	const listProps = {
		list,
		pagination1,
		showList(payload){
				dispatch({
					type:"archivalReminders/query",
					payload:{
						...payload
					}
				})
		},
		onPageChange(page) {
	      dispatch({
	        type: "archivalReminders/query",
	        payload: { page: page.current, pageSize: page.pageSize }
	      });
	    },
	}
	return(
      <div className="content-inner" style={{backgroundColor:'transparent',padding:0}}>
      	<List {...listProps}/>
      </div>			
	)
}

export default connect(({archivalReminders,loading}) => ({archivalReminders,loading}))(ArchivalReminders)
